#include "clib_cpu.h"
#include <sys/syscall.h>

i32_t clib_get_cpu_info(clib_cpu_info_t* info)
{
    unsigned cpu, node;
    i32_t ret;
    ret = syscall (__NR_getcpu, &cpu, &node, 0);
    info->cpu = cpu;
    info->node = node;
    return ret;
}